// 所有页面公有的基本功能函数集
function showLoading(show) {
	$("div.overLoading").css({ 
		top:$(document).scrollTop()+"px" 
	});
	if($(window).height() < $(window).width()){
		$("div.layoutLoading").css({
			top:( $(window).height() * 0.4 + $(document).scrollTop() )+"px",
			left:$(window).width() * 0.4 + "px",
			width: $(window).width() * 0.2 + "px"
		}).children('img').css({
			width:"100%"
		});
	}else{
		$("div.layoutLoading").css({
			top:( $(window).height() * 0.4 + $(document).scrollTop() )+"px",
			left:$(window).width() * 0.2 + "px",
			width: $(window).width() * 0.6 + "px"
		}).children('img').css({
			width:"100%"
		});
	}
		
    if (show) {
        document.getElementById("over").style.display = "block";
        document.getElementById("layout").style.display = "block";
        $('body').css('overflow','hidden');
    } else {
        document.getElementById("over").style.display = "none";
        document.getElementById("layout").style.display = "none";
        $('body').css('overflow','auto');
    }
}